package com.vanke.vms.management.service.serviceImpl;

import java.util.List;
import java.util.Map;

import com.vanke.vms.common.domain.Info;
import com.vanke.vms.common.domain.Pair;
import com.vanke.vms.management.dao.ViewInfoDao;
import com.vanke.vms.management.service.ViewInfoService;

public class ViewInfoServiceImpl implements ViewInfoService{
	
	private ViewInfoDao viewInfoDao;
	
	public List<Info> viewInfo(String key, String value){
		return viewInfoDao.viewInfo(key, value);
	}
	
	public List<Map<String,String>> viewSelectedInfo(List<Pair> selectedViewList){
		return viewInfoDao.viewSelectedInfo(selectedViewList);
	}
	
	public List<Map<String,String>> viewSelectedAddiInfo(List<Map<String, String>> infoList, List<String> addiViewList){
		return viewInfoDao.viewSelectedAddiInfo(infoList, addiViewList);
	}
	
	public Map<Integer, List<String>> viewAddInfo(List<Integer> idList, List<Pair> allAddInfoHeadList){
		return viewInfoDao.viewAddInfo(idList,allAddInfoHeadList);
	}
	
	public List<Integer> getInfoIdListByPCName(String pname, String cname, String viewvalue){
		return viewInfoDao.getInfoIdListByPCName(pname, cname, viewvalue);
	}
	
	public List<Info> getAllInfoByInfoIdList(List<Integer> infoIdList){
		return viewInfoDao.getAllInfoByInfoIdList(infoIdList);
	}
	
	public List<Pair> assembleList(){
		return viewInfoDao.assembleList();
	}
	
	public ViewInfoDao getViewInfoDao() {
		return viewInfoDao;
	}

	public void setViewInfoDao(ViewInfoDao viewInfoDao) {
		this.viewInfoDao = viewInfoDao;
	}
}
